package cc.minos.components.scrollbar
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Minos
	 */
	public class ScrollEvent extends Event
	{
		public static const VALUE_CHANGED = "scrollValueChanged";
		
		private var _value:Number;
		
		public function ScrollEvent( type:String , value:Number , bubbles:Boolean = false , cancelable:Boolean = false )
		{
			super( type , bubbles , cancelable );
			_value = value;
		}
		
		public override function clone():Event
		{
			return new ScrollEvent( type , bubbles , cancelable );
		}
		
		public override function toString():String
		{
			return formatToString( "ScrollEvent" , "type" , "bubbles" , "cancelable" , "eventPhase" );
		}
		
		public function get value():Number
		{
			return _value;
		}
	
	}

}